package dynamicJsonVerifyer.verifyers.baseDataType;

import com.alibaba.fastjson.JSONObject;
import dynamicJsonVerifyer.Const;
import dynamicJsonVerifyer.verifyers.FieldTypeVerifyer;

import java.math.BigDecimal;

public class FloatVerifyer extends FieldTypeVerifyer {
    @Override
    protected String getType() {
        return Const.BaseVerifyDataType.float0;
    }

    @Override
    protected boolean verifyType(JSONObject verifyMetadata, Object appointVaildData) {
        return appointVaildData instanceof BigDecimal;
    }
}
